package com.example.zaq.model;

//20210520 zaq  引入

import lombok.Data;

import java.io.Serializable;

//20210520 zaq  引入

/**
 * asp_book
 * @author 
 */
@Data
public class AspBook implements Serializable {
    /**
     * 返回信息
     */
    private  String note;
    /**
     * 返回码，>0表示成功
     */
    private  Integer code;

    /**
     * 是否有组别
     */
    private Boolean flagGroup;

    /**
     * 账簿信息修改弹框
     */
    private Boolean bookUpdate;

    /**
     * 查询收支信息drawer
     */
    private Boolean selectDrawer;

    private Integer bId;

    /**
     * 账簿名
     */
    private String bName;

    /**
     * 账簿创建日期
     */
    private Integer bCreatedate;

    /**
     * 1表示默认账簿，一个用户只允许存在一个默认账簿
     */
    private Boolean bDefault;

    /**
     * 删除标志，1表示已删除
     */
    private Boolean delete;

    /**
     * 用户ID
     */
    private Integer uId;

    /**
     * 账簿类型，例：日常生活、学生时代...
     */
    private Integer bKind;

    private static final long serialVersionUID = 1L;

    public Integer getCode() {
        return code;
    }

    public void setCode(Integer code) {
        this.code = code;
    }

    public Boolean getFlagGroup() {
        return flagGroup;
    }

    public void setFlagGroup(Boolean flagGroup) {
        this.flagGroup = flagGroup;
    }

    public Boolean getBookUpdate() {
        return bookUpdate;
    }

    public void setBookUpdate(Boolean bookUpdate) {
        this.bookUpdate = bookUpdate;
    }

    public Boolean getSelectDrawer() {
        return selectDrawer;
    }

    public void setSelectDrawer(Boolean selectDrawer) {
        this.selectDrawer = selectDrawer;
    }

    public Integer getbId() {
        return bId;
    }

    public String getNote() {
        return note;
    }

    public void setNote(String note) {
        this.note = note;
    }

    public void setbId(Integer bId) {
        this.bId = bId;
    }

    public String getbName() {
        return bName;
    }

    public void setbName(String bName) {
        this.bName = bName;
    }

    public Integer getbCreatedate() {
        return bCreatedate;
    }

    public void setbCreatedate(Integer bCreatedate) {
        this.bCreatedate = bCreatedate;
    }

    public Boolean getbDefault() {
        return bDefault;
    }

    public void setbDefault(Boolean bDefault) {
        this.bDefault = bDefault;
    }

    public Boolean getDelete() {
        return delete;
    }

    public void setDelete(Boolean delete) {
        this.delete = delete;
    }

    public Integer getuId() {
        return uId;
    }

    public void setuId(Integer uId) {
        this.uId = uId;
    }

    public Integer getbKind() {
        return bKind;
    }

    public void setbKind(Integer bKind) {
        this.bKind = bKind;
    }

    public static long getSerialVersionUID() {
        return serialVersionUID;
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        AspBook other = (AspBook) that;
        return (this.getbId() == null ? other.getbId() == null : this.getbId().equals(other.getbId()))
            && (this.getbName() == null ? other.getbName() == null : this.getbName().equals(other.getbName()))
            && (this.getbCreatedate() == null ? other.getbCreatedate() == null : this.getbCreatedate().equals(other.getbCreatedate()))
            && (this.getbDefault() == null ? other.getbDefault() == null : this.getbDefault().equals(other.getbDefault()))
            && (this.getDelete() == null ? other.getDelete() == null : this.getDelete().equals(other.getDelete()))
            && (this.getuId() == null ? other.getuId() == null : this.getuId().equals(other.getuId()))
            && (this.getbKind() == null ? other.getbKind() == null : this.getbKind().equals(other.getbKind()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getbId() == null) ? 0 : getbId().hashCode());
        result = prime * result + ((getbName() == null) ? 0 : getbName().hashCode());
        result = prime * result + ((getbCreatedate() == null) ? 0 : getbCreatedate().hashCode());
        result = prime * result + ((getbDefault() == null) ? 0 : getbDefault().hashCode());
        result = prime * result + ((getDelete() == null) ? 0 : getDelete().hashCode());
        result = prime * result + ((getuId() == null) ? 0 : getuId().hashCode());
        result = prime * result + ((getbKind() == null) ? 0 : getbKind().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", bId=").append(bId);
        sb.append(", bName=").append(bName);
        sb.append(", bCreatedate=").append(bCreatedate);
        sb.append(", bDefault=").append(bDefault);
        sb.append(", delete=").append(delete);
        sb.append(", uId=").append(uId);
        sb.append(", bKind=").append(bKind);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}